//
//  SetTableViewCell.m
//  FruitHelper
//
//  Created by 赵隆杰 on 2021/12/11.
//

#import "SetTableViewCell.h"
#import "UIImage+Common.h"

@interface SetTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageview;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;


@end

@implementation SetTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setImageStr:(NSString *)imageStr
{
    UIImage *image = [UIImage imageNamed:imageStr];
    if ([imageStr isEqualToString:@"evaluate"]) {
        image = [image imageChangeColor:[UIColor colorWithRed:76/256.0 green:76/256.0 blue:76/256.0 alpha:1.0]];
    }
    self.imageview.image = image;
}
- (void)setTitle:(NSString *)title
{
    self.titleLabel.text = title;
}

@end
